import request from '@/utils/request2'

// 查询学生离校列表
export function listLeaveSchool(query) {
  return request({
    url: '/stuManage/leaveSchool/list',
    method: 'get',
    params: query
  })
}

// 查询学生离校详细
export function getLeaveSchool(id) {
  return request({
    url: '/stuManage/leaveSchool/' + id,
    method: 'get'
  })
}

// 新增学生离校
export function addLeaveSchool(data) {
  return request({
    url: '/stuManage/leaveSchool',
    method: 'post',
    data: data
  })
}

// 修改学生离校
export function updateLeaveSchool(data) {
  return request({
    url: '/stuManage/leaveSchool',
    method: 'put',
    data: data
  })
}

// 删除学生离校
export function delLeaveSchool(id) {
  return request({
    url: '/stuManage/leaveSchool/' + id,
    method: 'delete'
  })
}
